#ifndef PROJ_ENCODER_H
#define PROJ_ENCODER_H

#include "data-interface.h"

void dfs(Node *u, string Encoding_list[], const string &encoded_str);

void makeEncodingList(int *frequency, string Encoding_List[]);

void Encoding(const byte_t *buffer, size_t read_count, string *EncodingList, FILE *out);

size_t virtualFwrite(void *buff, size_t elementSize, size_t count, FILE *fp);

#endif //PROJ_ENCODER_H
